8a6aae6db4f048400b3fe3f78f1869150cdd6dd9,maven-artifact-ant/src/main/java/org/apache/maven/artifact/ant/DeployTask.java,DeployTask,execute,#,46

Before Change


            if ( pom.getDistributionManagement().getSnapshotRepository() != null )
            {
                remoteSnapshotRepository = createAntRemoteRepositoryBase(
                    pom.getDistributionManagement().getSnapshotRepository() );
            }
        }

After Change



        Artifact artifact = createArtifact( pom );

        DistributionManagement distributionManagement = pom.getDistributionManagement();

        if ( remoteSnapshotRepository == null && remoteRepository == null )
        {
            if ( distributionManagement != null )
            {
                if ( distributionManagement.getSnapshotRepository() != null )
                {
                    remoteSnapshotRepository = createAntRemoteRepositoryBase(
                        distributionManagement.getSnapshotRepository() );
                }
                if ( distributionManagement.getRepository() != null )
                {
                    remoteRepository = createAntRemoteRepositoryBase( distributionManagement.getRepository() );
                }